<script setup lang="ts">

import SvgIcon from "@/components/SvgIcon/index.vue";
</script>

<template>
  <div class="card-demo-basic box-shadow-card">
    <div class="avatar-content">
      <div class="avatar-box">
        <img src="@/assets/avatar.jpg" alt="头像"/>
      </div>
    </div>
    <div class="content">
      <!-- 姓名 + 标签     -->
      <div class="name-content">
        <span class="name">小木苓</span>
        <SvgIcon icon-class="man" size="24"></SvgIcon>
        <!--        <SvgIcon icon-class="girl" size="24"></SvgIcon>-->
      </div>
      <!-- 访问量、原创、粉丝数、关注数      -->
      <div class="other-content">
        <div><span class="num">181992</span>总访问量
          <div class="isolation"></div>
        </div>
        <div><span class="num">192</span>原创
          <div class="isolation"></div>
        </div>
        <div><span class="num">409</span>粉丝
          <div class="isolation"></div>
        </div>
        <div><span class="num">297</span>关注</div>
      </div>
      <!-- ip 地址，加入时间     -->
      <div class="ip-add-content">
        <div><span style="margin-right: 4px">IP归属地:</span>浙江省</div>
        <div><span style="margin-right: 4px">加入CSDN时间:</span>2022-01-22</div>
      </div>
      <!-- 个人简介     -->
      <div class="individual-content">
        <span style="margin-right: 4px">个人简介:</span>
        <span>让编程成为一种习惯</span>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.card-demo-basic {
  display: flex;
  align-items: center;
  padding: 16px;
  background-color: var(--blog-background-card-color);

  .avatar-content {
    width: 120px;
    position: relative;

    .avatar-box {
      position: absolute;
      top: -90px;
      width: 100px;
      height: 100px;
      border-radius: 50%;
      border: 4px solid #F0F0F2;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  .content {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    gap: 8px;

    .name-content {
      font-size: 20px;
      line-height: 20px;
      margin-bottom: 4px;
      display: flex;
      align-items: center;

      .name {
        color: #222226;
        font-weight: 600;
        margin-right: 16px;
      }
    }

    .other-content {
      display: flex;
      justify-content: space-between;

      div {
        color: #8a8e99;
        font-size: 14px;
        display: flex;
        align-items: center;

        .num {
          color: #222226;
          font-weight: 600;
          font-size: 20px;
          line-height: 24px;
          margin-right: 4px;
        }

        .isolation {
          width: 1px;
          height: 16px;
          background: #e8e8ed;
          margin: 0 16px;
        }
      }
    }

    .ip-add-content {
      display: flex;
      gap: 24px;
    }
  }
}

/*.card-demo-basic {
  cursor: pointer;

  .card-demo-icon {
    cursor: pointer;
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
  }

  .card-demo-icon + span {
    vertical-align: middle;
  }

  .card-block {
    margin-right: 16px;

    i {
      cursor: pointer;
      font-size: 16px;
      margin-right: 8px;
      vertical-align: middle;
    }

    i + span {
      vertical-align: middle;
    }
  }

  .card-container {
    width: 350px;
  }

  .action-text {
    color: #8a8e99;
  }
}*/
</style>
